package com.gxa.mall.service;

import com.gxa.mall.dao.SellDao;
import com.gxa.mall.dao.SupplierDao;
import com.gxa.mall.model.Sell;
import com.gxa.mall.model.Supplier;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SellService {
    @Autowired
    SellDao sellDao;


    public List<Sell> toseeksell() {
       return sellDao.toseeksell();
    }

    public void addsell(Sell sell) {
        sellDao.addsell(sell);
    }

    public List<Sell> tolikeseek(String text) {
        return sellDao.tolikeseek(text);
    }

    public Sell toupdata(Integer id) {
        return sellDao.toupdata(id);
    }

    public void savesell(Sell sell) {
        sellDao.savesell(sell);
    }

    public void toremove(Integer id) {
        sellDao.toremove(id);
    }
}
